Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit 98092d3c7707f4086db978a1da233dfda2b9fc43


Parents : 2d8e050
Author : Sudo-Ivan <ivan@quad4.io>
Signature : Signature validation error
Date : 2026-01-02T09:23:16-06:00

chore(cx_setup): update include_files logic to conditionally add directories

Changes

1 files changed, 10 insertions(+), 5 deletions(-)

M cx_setup.py +10 -5

Diff

diff --git a/cx_setup.py b/cx_setup.py
index 92bea375..00fa2214 100644
--- a/cx_setup.py
+++ b/cx_setup.py
@@ -8,12 +8,17 @@ from meshchatx.src.version import __version__
ROOT = Path(__file__).resolve().parent
PUBLIC_DIR = ROOT / "meshchatx" / "public"
-include_files = [
- (str(PUBLIC_DIR), "public"),
- ("logo", "logo"),
-]
+include_files = []
+
+if PUBLIC_DIR.exists() and PUBLIC_DIR.is_dir():
+ include_files.append((str(PUBLIC_DIR), "public"))
+
+logo_dir = ROOT / "logo"
+if logo_dir.exists() and logo_dir.is_dir():
+ include_files.append(("logo", "logo"))
-if (ROOT / "bin").exists():
+bin_dir = ROOT / "bin"
+if bin_dir.exists() and bin_dir.is_dir():
include_files.append(("bin", "bin"))
packages = [


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────